Hi Muhammad,
unfortunately this seems to be a known bug of Eclipse.
The problem is generally caused by some drivers of hardware installed in the machine that is in conflict with the graphics libraries of Eclipse. You can try to update the video card drivers (or input peripherals such as mouse and keyboard) and uninstall the software related to these devices that are running in background.
Moreover you can try to update the Oracle Java JDK.